<template>
	<view class="detail_container">
		<navBar title="详情" goBackUrl="/pages/homePage/homePage" @goBack="goBack"></navBar>
		<commonDetail :detailId="detailId"></commonDetail>
	</view>
</template>

<script>
	export default {
		components: {
		},
		data() {
			return {
				detailId:-1,	//子组件id
			}
		},
		onLoad(options) {
			if(options.id) {
				this.detailId = Number(options.id)
			}
		},
		methods: {
			// 返回上一级
			goBack(url) {
				uni.navigateBack({})
			},	
		}
	}
</script>

<style lang="scss" scoped>
	.detail_container {
		background-color: #f5f5f9;
	}

</style>
